// 配置项文档：https://koishi.js.org/api/app.html
module.exports = {
  // Koishi 服务器监听的端口
  port: 8080,
  onebot: {
    secret: '',
  },
  kaiheila: {},
  bots: [{
    type: 'onebot:ws',
    // 对应 cqhttp 配置项 ws_config.port
    server: 'ws://localhost:6700',
    selfId: 3585366684,
  }, {
    type: 'kaiheila:ws',
    token: '1/MTA0NzQ=/pqvCJMIQJAvckR+bb1Hc3g==',
  }],
  plugins: {
    assets: {
      type: 'local',
      // 本地存储资源文件的绝对路径
      root: '/usr/local/koishi/sakurabot/assets',
      // 静态图片暴露在服务器的路径，默认为 '/assets'
      path: '',
      // Koishi 暴露在公网的地址，默认为 appOptions.selfUrl
      selfUrl: '139.196.201.219:8080',
      // 防止恶意上传的密钥（配合下一节使用）
      secret: '',
    },
    mysql: {
      host: '127.0.0.1',
      // Koishi 服务器监听的端口
      port: 3306,
      user: 'koishi',
      password: 'SakuraRealmBot',
      database: 'koishi',
    },
    chat: {},
    common: {
      onFriendRequest: true,
      onGroupRequest: true,
      relay: [
        {
	        source: 'onebot:347875975',
	        destination: 'kaiheila:7582586724930705',
        },
        {
	        source: 'onebot:192862617',
	        destination: 'kaiheila:3416379678161425',
        },
        /* {
          source: 'onebot:976110274',
          destination: 'kaiheila:3609989070552110',
        } */
      ],
    },
    forward: {},
    tools: {},
    webui: {},
  },
}
